package com.yiji.fintech.musfinance.common.strategy.context;

import com.yiji.fintech.musfinance.center.base.result.ResultFacade;
import com.yiji.fintech.musfinance.common.domain.base.BaseDomain;
import com.yiji.fintech.musfinance.common.strategy.base.UniqueBaseStrategy;

/**
 * Created by ouwen@yiji.com} on 2017/9/27.
 */
public class UniqueContext {
    private UniqueBaseStrategy uniqueBaseStrategy;
    public UniqueContext(UniqueBaseStrategy uniqueBaseStrategy) {
        this.uniqueBaseStrategy = uniqueBaseStrategy;
    }
    public void doUnique(BaseDomain domain,ResultFacade result){
        uniqueBaseStrategy.doExcute(domain,result);
    }
}
